package com.etlmaster.executor.steps.sql;

import com.etlmaster.executor.StepMeta;
/**
 * 
 * @author MeiKefu
 * @date 2014-8-15
 */
public class SqlStepMeta extends StepMeta{
	
	private String sql;
	
	private String dsName;
	
	private String userName;
	
	private String password;
	
	private String isOneSql;
	
	private String setDefault;
	public SqlStepMeta(String id, String name,String step_code, String session_id, String paramStr) {
		super(id, name,step_code, session_id, paramStr);
	}

	public String getSql() {
		return variableSubstitution(sql);
	}

	public String getDsName() {
		return variableSubstitution(dsName);
	}

	public String getUserName() {
		return variableSubstitution(userName);
	}

	public String getPassword() {
		return variableSubstitution(password);
	}

	@Override
	protected void loadParamsFromConfigTable() {
		// TODO Auto-generated method stub
		
	}

	public String getIsOneSql() {
		if(isOneSql!=null)
			return isOneSql;
		else
			return "false";
	}

	public void setIsOneSql(String isOneSql) {
		this.isOneSql = isOneSql;
	}

	public String getSetDefault() {
		return this.variableSubstitution(setDefault);
	}

	public void setSetDefault(String setDefault) {
		this.setDefault = setDefault;
	}
}
